package com.taiyuan.tongcheng.ui;

import org.kymjs.kjframe.KJActivity;

import android.content.Intent;
import android.os.Handler;
import android.os.Message;

import com.tytc56.user.R;

public class GuangGaoActivity extends KJActivity{
	
	public  static final int  GO_INTO_MAIN=1;

	@Override
	public void setRootView() {
		setContentView(R.layout.activity_guanggao);
	}
	
	private Handler  handler=new Handler(){

		@Override
		public void handleMessage(Message msg) {
			super.handleMessage(msg);
			switch (msg.what) {
			case GO_INTO_MAIN:
				jumpTo();
				break;

			default:
				break;
			}
		}
		
	};
	
	@Override
	public void initWidget() {
		super.initWidget();
		new Thread(new Runnable() {
			
			@Override
			public void run() {
				try {
					Thread.sleep(2000);
				} catch (InterruptedException e) {
					e.printStackTrace();
				}
				handler.sendEmptyMessage(GO_INTO_MAIN);
				
			}
		}).start();
		
	}
	
	private void jumpTo() {
		Intent jumpIntent = new Intent();
		jumpIntent.setClass(this, MainActivitySlide.class);
		startActivity(jumpIntent);
		finish();
	}
	

}
